<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value=1 />
	<input type="hidden" name="numPerPage" value={{ numPerPage }} />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="/customer/index/" method="post">
	<div class="searchBar">
		<div class="subBar">
			<ul></ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="/customer/addcustomer/" target="navTab"><span>添加客户</span></a></li>
			<li><a class="add" href="/customer/addgroup/" mask="true" target="dialog" rel="添加分组"><span>添加分组</span></a></li>
{#			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" href="demo/common/ajaxDone.html" class="delete"><span>批量删除默认方式</span></a></li>#}
{#			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string" href="demo/common/ajaxDone.html" class="delete"><span>批量删除逗号分隔</span></a></li>#}
{#			<li><a class="edit" href="demo_page4.html?uid={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>#}
			<li class="line">line</li>
{#			<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>#}
		</ul>
	</div>
	<table class="table" width="1200" layoutH="138">
		<thead>
			<tr>
{#				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>#}
				<th width="30">ID</th>
				<th width="50">姓名</th>
				<th width="80">公司</th>
				<th width="80">QQ</th>
				<th width="60" align="center">等级</th>
				<th width="60" align="center">分组</th>
				<th width="70">销售员</th>
				<th width="70">行业</th>
				<th width="70">日期</th>
				<th width="70">操作</th>
			</tr>
		</thead>
		<tbody>
        {% for foo in list %}
			<tr target="cid" rel="{{ foo.id }}">
{#				<td><input name="ids" value="xxx" type="checkbox"></td>#}
				<td>{{ foo.id }}</td>
				<td>{{ foo.customername }}</td>
				<td>{{ foo.company }}</td>
				<td>{{ foo.qq }}</td>
				<td>{{ foo.level.levelname }}</td>
				<td>{{ foo.groupid.groupname }}</td>
				<td>{{ foo.saler.username }}</td>
				<td>{{ foo.industry.industryname }}</td>
				<td>{{ foo.createdate|date:"Y-m-d H:i:s" }}</td>
				<td>
{#					<a title="删除" target="ajaxTodo" href="" class="btnDel">删除</a>#}
					<a title="编辑" target="navTab" href="/customer/editcustomer/?id={{ foo.id }}" class="btnEdit">编辑</a>
				</td>
			</tr>
        {% endfor %}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
{#			<span>每页显示</span>#}
{#			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">#}
{#				<option value="1">1</option>#}
{#				<option value="2">2</option>#}
{#				<option value="100">100</option>#}
{#				<option value="200">200</option>#}
{#			</select>#}
{#			<span>条, #}
               每页显示:{{ numPerPage }}, 共{{ paginator.count }}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount={{ paginator.count }} numPerPage={{ numPerPage }}  pageNumShown=10 currentPage={{ pageNum }}></div>
	</div>
</div>
